﻿package {
	import flash.display.Sprite;

	public class shape_Sprite extends Sprite
	{
		public function shape_Sprite():void 
		{
		}
		public function RectSprite(color:uint,_x:int,_y:int,_w:int,_h:int):void
		{
			this.graphics.beginFill(color);
			this.graphics.drawRect(_x,_y,_w,_h);
			this.graphics.endFill();
		}
		public function EllSprite(color:uint,_x:int,_y:int,_w:int,_h:int):void
		{
			this.graphics.beginFill(color);
			this.graphics.drawEllipse(_x,_y,_w,_h);
			this.graphics.endFill();
		}
		/*public function CirSprite(color:uint,_x:int,_y:int,_r:int):void
		{
			this.graphics.beginFill(color);
			this.graphics.drawCircle(_x,_y,_r);
			this.graphics.endFill();
		}*/
		public function LineSprite(size:int,color:uint,b_x:int,b_y:int,e_x:int,e_y:int):void
		{
			this.graphics.lineStyle(size,color);
			this.graphics.moveTo(b_x,b_y);
			this.graphics.lineTo(e_x,e_y);
			this.graphics.endFill();
		}
	}
}